package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ADispatchExecutionsMapper;
import com.ruoyi.system.domain.ADispatchExecutions;
import com.ruoyi.system.service.IADispatchExecutionsService;

/**
 * 调度执行Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
@Service
public class ADispatchExecutionsServiceImpl implements IADispatchExecutionsService 
{
    @Autowired
    private ADispatchExecutionsMapper aDispatchExecutionsMapper;

    /**
     * 查询调度执行
     * 
     * @param id 调度执行主键
     * @return 调度执行
     */
    @Override
    public ADispatchExecutions selectADispatchExecutionsById(Long id)
    {
        return aDispatchExecutionsMapper.selectADispatchExecutionsById(id);
    }

    /**
     * 查询调度执行列表
     * 
     * @param aDispatchExecutions 调度执行
     * @return 调度执行
     */
    @Override
    public List<ADispatchExecutions> selectADispatchExecutionsList(ADispatchExecutions aDispatchExecutions)
    {
        return aDispatchExecutionsMapper.selectADispatchExecutionsList(aDispatchExecutions);
    }

    /**
     * 新增调度执行
     * 
     * @param aDispatchExecutions 调度执行
     * @return 结果
     */
    @Override
    public int insertADispatchExecutions(ADispatchExecutions aDispatchExecutions)
    {
        return aDispatchExecutionsMapper.insertADispatchExecutions(aDispatchExecutions);
    }

    /**
     * 修改调度执行
     * 
     * @param aDispatchExecutions 调度执行
     * @return 结果
     */
    @Override
    public int updateADispatchExecutions(ADispatchExecutions aDispatchExecutions)
    {
        return aDispatchExecutionsMapper.updateADispatchExecutions(aDispatchExecutions);
    }

    /**
     * 批量删除调度执行
     * 
     * @param ids 需要删除的调度执行主键
     * @return 结果
     */
    @Override
    public int deleteADispatchExecutionsByIds(Long[] ids)
    {
        return aDispatchExecutionsMapper.deleteADispatchExecutionsByIds(ids);
    }

    /**
     * 删除调度执行信息
     * 
     * @param id 调度执行主键
     * @return 结果
     */
    @Override
    public int deleteADispatchExecutionsById(Long id)
    {
        return aDispatchExecutionsMapper.deleteADispatchExecutionsById(id);
    }
}
